package com.fh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "house_money_platform")
public class MoneyPlatform {

    @TableId(value = "platform_id", type = IdType.AUTO)
    private Integer      platformId;//收支记录id
    private Integer     userId;//用户id
    private BigDecimal  platformIncome;//平台收入
    private BigDecimal  platformExpenditure;//平台支出
    private Integer isDel;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateDate;


}
